-- GENERATED SPELL FOR [Shadowy Advisor] --


function spell0_18719(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18719', 3000, 1)
end

function Sorts_18719(pUnit, Event)
local choix_sorts_18719 = math.random(0, 0)
if choix_sorts_18719 == 0 then
pUnit:RegisterEvent('spell0_18719', 1, 1)
end
end

function mob18719_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18719', math.random(1500, 3000), 1)
end

function mob18719_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18719_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18719_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18719, 1, 'mob18719_Action')
RegisterUnitEvent(18719, 2, 'mob18719_Leave')
RegisterUnitEvent(18719, 3, 'mob18719_Kill')
RegisterUnitEvent(18719, 4, 'mob18719_Die')
